Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: visit of inner query for FunctionScoreQueryBuilder #16776

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

kodieg
Copy link

@kodieg kodieg commented Dec 4, 2024

Description

This is version of #15404 cherrypicked on main.

Similar to #14739, but implements the visit method in FunctionScoreQueryBuilder to allow subqueries to be processed properly.

Related Issues

Resolves #15403
Similar to #15034

Check List

  • Functionality includes testing.
  • API changes companion pull request created, if applicable.
  • Public documentation issue/PR created, if applicable.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Copy link
Contributor

github-actions bot commented Dec 4, 2024

✅ Gradle check result for 8339029: SUCCESS

Copy link

codecov bot commented Dec 4, 2024

Codecov Report

Attention: Patch coverage is 75.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 72.03%. Comparing base (5ba909a) to head (19c5597).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...query/functionscore/FunctionScoreQueryBuilder.java 75.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main   #16776      +/-   ##
============================================
- Coverage     72.11%   72.03%   -0.08%     
+ Complexity    65237    65194      -43     
============================================
  Files          5318     5318              
  Lines        304003   304015      +12     
  Branches      43992    43994       +2     
============================================
- Hits         219228   218994     -234     
- Misses        66874    67091     +217     
- Partials      17901    17930      +29     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

github-actions bot commented Dec 6, 2024

❌ Gradle check result for 48eae48: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

Signed-off-by: jdnvn <joe@donovan.to>
Signed-off-by: jdnvn <joe@donovan.to>
Signed-off-by: Konrad Gołuchowski <konrad.goluchowski@synerise.com>
Copy link
Contributor

✅ Gradle check result for 19c5597: SUCCESS

@gaobinlong gaobinlong added the backport 2.x Backport to 2.x branch label Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x Backport to 2.x branch bug Something isn't working Search:Query Capabilities
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Cannot make use of default_model_id in function_score query type
3 participants